package jsyf.oa.dao.wreport;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.wreport.CostDetailEntity;
import jsyf.oa.entity.wreport.WReportCostEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by y on 2018/3/22.
 */
@Repository
public class CostDetailDao extends BaseDao {
    public CostDetailDao() {
        super.iBaseEntity =new CostDetailEntity();
    }


    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, CostDetailEntity.class);
    }
    public CostDetailEntity getEntityById(String id){
        return (CostDetailEntity) super.getIBaseEntityById(id);
    }
}
